const express = require('express');
const controller = require('./controller.js');
const router = express.Router();
module.exports = router;



// 用户登录
router.post('/users/login',controller.user_login);

//学生端加载
router.post('/student/getData',controller.student_getData);

//学生端获取作业
router.post('/student/homework',controller.student_homework);

//学生端提交信息
router.post('/student/submit',controller.student_submit);

//学生端提交文件
router.post('/student/submithomework',controller.student_submithomework);

//教师端发布作业信息
router.post('/homeworks/send',controller.teacher_ask);

//教师端发布作业文件
router.post('/teacher/sendfile',controller.teacher_sendfile);

//教师端查看发布作业
router.post('/teacher/getData',controller.teacher_getData);

//教师端统计未交人数
router.post('/teacher/statistics',controller.teacher_statistics);

//教师端统计未交人数详细信息
router.post('/teacher/statisticsClass',controller.teacher_statisticsClass);

//教师端下载
router.post('/teacher/download',controller.teacher_download);

//教师端查看班级
router.post('/teacher/getClassData',controller.teacher_getClassData);

//教师端修改班级
router.post('/teacher/modifyClassData',controller.teacher_modifyClassData);

// 上传班级文件
router.post("/teacher/uploadstu_file",controller.uploadstu_file);
